package org.jeecg.modules.caiGgl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.caiGgl.entity.HqCggl;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 采购管理
 * @Author: jeecg-boot
 * @Date:   2020-06-17
 * @Version: V1.0
 */
public interface IHqCgglService extends IService<HqCggl> {

    IPage<HqCggl> myApplyList(Page<HqCggl> page, LoginUser user, HqCggl hqCggl);

    IPage<HqCggl> myTodoTasks(Page<HqCggl> page, LoginUser user, HqCggl hqCggl);

    IPage<HqCggl> myDoneTasks(Page<HqCggl> page, LoginUser user, HqCggl hqCggl);

    void startFlow(HqCggl hqCggl, LoginUser loginUser);

    public void complateTask(LoginUser loginUser, String taskId,String processInstanceId, Integer status, String memo, String auditUser);

    void applyAgain(HqCggl hqCggl, LoginUser user);

    List<Map<String, Object>> jisCaigzxl(String startDate, String endDate);
}
